-- GENERATED SPELL FOR [Blacksilt Seer] --


function spell0_17330(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(12160,pUnit)
pUnit:RegisterEvent('Sorts_17330', 12000, 1)
end

function spell1_17330(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17330', 2000, 1)
end

function Sorts_17330(pUnit, Event)
local choix_sorts_17330 = math.random(0, 1)
if choix_sorts_17330 == 0 then
pUnit:RegisterEvent('spell0_17330', 1, 1)
end
if choix_sorts_17330 == 1 then
pUnit:RegisterEvent('spell1_17330', 1, 1)
end
end

function mob17330_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17330', math.random(1500, 3000), 1)
end

function mob17330_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17330_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17330_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17330, 1, 'mob17330_Action')
RegisterUnitEvent(17330, 2, 'mob17330_Leave')
RegisterUnitEvent(17330, 3, 'mob17330_Kill')
RegisterUnitEvent(17330, 4, 'mob17330_Die')
